package com.syedu.day07.v1;

/**
 * description：
 * @author Administrator
 * @date 2022/3/15 16:14
 */
public class TestEmp {
    public static void main(String[] args) {
        //创建上司
        Employee employee = new Employee(1, "AA", 20000.0);
        //创建下属
        Employee e1 = new Employee(1000, "BB", 7000);
        Employee e2 = new Employee(2000, "CC", 6500);
        //添加下属
        employee.addEmp(e1);
        employee.addEmp(e2);
        //打印下属信息
        employee.showEmps();
        //打印下属人数
        System.out.println("下属人数为: " + employee.getEmpCount());
    }
}